// Lean compiler output
// Module: Lake.Config.Module
// Imports: public import Lake.Config.LeanLib import Lake.Util.OrdHashSet import Lake.Util.NativeLib import Lake.Util.FilePath
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFile(lean_object*);
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_bcFile_x3f(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instToStringModule___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_ileanFile(lean_object*);
static lean_object* l_Lake_Module_irFile___closed__0;
static lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__0;
LEAN_EXPORT lean_object* l_Lake_Module_pkg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_LeanLib_findModule_x3f(lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_filePath(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_Package_findModule_x3f___closed__1;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_findSomeRevM_x3f_find___at___00Lake_Package_findModule_x3f_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_System_FilePath_normalize(lean_object*);
static lean_object* l_Lake_ModuleSet_empty___closed__0;
LEAN_EXPORT lean_object* l_Lake_Module_leancArgs___boxed(lean_object*);
lean_object* l_Lean_LeanOptions_ofArray(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_Package_findModule_x3f_spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lake_Module_dynlibFile___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_getMTime___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instToStringModule;
uint8_t l_Lake_LeanLibConfig_isBuildableModule___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instBEqModule;
LEAN_EXPORT lean_object* l_Lake_Module_irPath___boxed(lean_object*, lean_object*);
lean_object* l_Lean_Name_toString(lean_object*, uint8_t);
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_filterMapM___at___00Lake_LeanLib_rootModules_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_LeanLib_getModuleArray(lean_object*);
uint8_t lean_usize_dec_eq(size_t, size_t);
lean_object* l_System_FilePath_extension(lean_object*);
lean_object* lean_io_metadata(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_leanLibPath___boxed(lean_object*, lean_object*);
lean_object* l_Lake_Package_id_x3f(lean_object*);
lean_object* lean_mk_array(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_leanOptions___boxed(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_platformIndependent(lean_object*);
lean_object* l_System_FilePath_withExtension(lean_object*, lean_object*);
lean_object* l_IO_FS_DirEntry_path(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_leanOptions(lean_object*);
lean_object* lean_array_fget_borrowed(lean_object*, lean_object*);
lean_object* l_Lean_mkModuleInitializationStem(lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_allowImportAll___boxed(lean_object*);
static lean_object* l_Lake_Module_oleanFile___closed__0;
static lean_object* l_Lake_Module_coNoExportFile___closed__0;
static lean_object* l_Lake_LeanLib_getModuleArray___closed__0;
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
uint8_t l_System_FilePath_pathExists(lean_object*);
static lean_object* l_Lake_Module_ileanFile___closed__0;
LEAN_EXPORT lean_object* l_Lake_Module_instGetMTime;
LEAN_EXPORT lean_object* l_Lake_Module_weakLeancArgs(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_utf8_byte_size(lean_object*);
uint8_t l_Lake_instOrdBuildType_ord(uint8_t, uint8_t);
lean_object* lean_string_push(lean_object*, uint32_t);
LEAN_EXPORT lean_object* l_Lake_Module_serverOptions___boxed(lean_object*);
LEAN_EXPORT uint64_t l_Lake_instHashableModule___lam__0(lean_object*);
static lean_object* l_Lake_Module_leanIncludeDir_x3f___closed__0;
static lean_object* l_Lake_Module_oleanServerFile___closed__0;
LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFile(lean_object*);
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__1___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_relPathFrom(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_OrdModuleSet_empty;
static lean_object* l_Lake_Module_traceFile___closed__0;
LEAN_EXPORT lean_object* l_Lake_ModuleSet_empty;
static lean_object* l_Lake_ModuleSet_empty___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_leancArgs(lean_object*);
extern lean_object* l_Lake_sharedLibExt;
LEAN_EXPORT lean_object* l_Lake_Module_leanArgs___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_weakLinkArgs(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*);
size_t lean_usize_of_nat(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_keyName___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_leanFile(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_getMTime(lean_object*);
LEAN_EXPORT uint8_t l_Lake_Module_allowImportAll(lean_object*);
LEAN_EXPORT uint8_t l_Lake_Module_checkExists(lean_object*);
uint8_t l_System_FilePath_isDir(lean_object*);
lean_object* l_Lean_LeanOptions_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_coExportFile(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_filePath___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_LeanLib_rootModules(lean_object*);
LEAN_EXPORT lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg(lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___closed__0;
LEAN_EXPORT lean_object* l_Lake_Module_weakLeanArgs(lean_object*);
static lean_object* l_Lake_Module_instGetMTime___closed__0;
static lean_object* l_Lake_OrdModuleSet_empty___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_rootDir(lean_object*);
static uint8_t l_Lake_Module_bcFile_x3f___closed__0;
LEAN_EXPORT lean_object* l_Lake_Package_findModule_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_nativeFacets___boxed(lean_object*, lean_object*);
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
static lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg___closed__0;
lean_object* l_System_FilePath_components(lean_object*);
static lean_object* l_Lake_Module_bcFile___closed__0;
LEAN_EXPORT lean_object* l_Lake_Module_oleanFile(lean_object*);
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__1___redArg___boxed(lean_object*, lean_object*);
static lean_object* l_Lake_Module_setupFile___closed__0;
lean_object* l_Lake_BuildType_leanOptions(uint8_t);
static lean_object* l_Lake_OrdModuleSet_empty___closed__2;
uint8_t lean_name_eq(lean_object*, lean_object*);
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Option_instBEq_beq___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_filterMapM___at___00Lake_LeanLib_rootModules_spec__0(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instBEqModule___lam__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Option_instBEq_beq___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_srcPath___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_platformIndependent___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_traceFile(lean_object*);
extern uint32_t l_System_FilePath_pathSeparator;
LEAN_EXPORT lean_object* l_Lake_instToJsonModule___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ModuleMap_empty(lean_object*);
LEAN_EXPORT uint8_t l_Lake_Module_shouldPrecompile(lean_object*);
lean_object* l_String_Slice_pos_x21(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_irFile(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_relLeanFile(lean_object*);
LEAN_EXPORT lean_object* l_Lake_LeanLib_findModuleBySrc_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Array_filterMapM___at___00Lake_LeanLib_rootModules_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lake_Module_leanArgs(lean_object*);
uint8_t l_IO_FS_instOrdSystemTime_ord(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_nativeFacets(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_Package_findModule_x3f_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_BuildType_leanArgs(uint8_t);
static lean_object* l_Lake_Module_oleanPrivateFile___closed__0;
LEAN_EXPORT lean_object* l_Lake_Module_srcPath(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_pkg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_coNoExportFile(lean_object*);
static lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__3;
LEAN_EXPORT lean_object* l_Lake_instToJsonModule;
LEAN_EXPORT uint8_t l_Lake_Module_backend(lean_object*);
LEAN_EXPORT uint8_t l_Lake_instBEqModule___lam__0(lean_object*, lean_object*);
static lean_object* l_Lake_Module_coExportFile___closed__0;
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
uint8_t l_Lake_Backend_orPreferLeft(uint8_t, uint8_t);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_LeanLib_getModuleArray___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Array_filterMapM___at___00Lake_LeanLib_rootModules_spec__0_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*);
lean_object* l_String_Slice_toString(lean_object*);
static lean_object* l_Lake_Module_bcoFile___closed__0;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_findSomeRevM_x3f_find___at___00Lake_Package_findModule_x3f_spec__0(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__1___redArg(lean_object*, lean_object*);
lean_object* l_Lean_LeanOptions_appendArray(lean_object*, lean_object*);
static uint32_t l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__1;
LEAN_EXPORT lean_object* l_Lake_Module_keyName(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_instCheckExists;
LEAN_EXPORT lean_object* l_Lake_Module_cFile(lean_object*);
uint64_t l_Lean_Name_hash___override(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_bcFile(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_leanIncludeDir_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_dynlibSuffix;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_findSomeRevM_x3f_find___at___00Lake_Package_findModule_x3f_spec__0___redArg(lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_sub(lean_object*, lean_object*);
static lean_object* l_Lake_Module_dynlibFile___closed__0;
lean_object* l_Array_append___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_dynlibs(lean_object*);
static lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__2;
LEAN_EXPORT lean_object* l_Lake_Module_backend___boxed(lean_object*);
LEAN_EXPORT lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2(lean_object*, lean_object*);
uint8_t lean_string_memcmp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_buildType___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_dynlibFile(lean_object*);
static lean_object* l_Lake_Package_findModule_x3f___closed__2;
static lean_object* l_Lake_OrdModuleSet_empty___closed__0;
LEAN_EXPORT lean_object* l_Lake_Module_checkExists___boxed(lean_object*, lean_object*);
lean_object* l_String_Slice_Pos_nextn(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_plugins(lean_object*);
lean_object* lean_io_read_dir(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_leanLibPath(lean_object*, lean_object*);
uint8_t lean_internal_has_llvm_backend(lean_object*);
size_t lean_usize_add(size_t, size_t);
LEAN_EXPORT lean_object* l_List_foldl___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_irPath(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instHashableModule___lam__0___boxed(lean_object*);
lean_object* lean_array_uget(lean_object*, size_t);
LEAN_EXPORT lean_object* l_Lake_instHashableModule;
size_t lean_array_size(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_bcoFile(lean_object*);
lean_object* l_Lean_Name_mkStr1(lean_object*);
lean_object* l_Lean_modToFilePath(lean_object*, lean_object*, lean_object*);
lean_object* lean_string_append(lean_object*, lean_object*);
lean_object* lean_array_get_size(lean_object*);
LEAN_EXPORT lean_object* l_Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_Package_findModule_x3f___closed__0;
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
uint8_t lean_usize_dec_lt(size_t, size_t);
lean_object* l_Lake_OrdHashSet_empty(lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_joinRelative(lean_object*, lean_object*);
lean_object* lean_nat_add(lean_object*, lean_object*);
lean_object* l_Lake_BuildType_leancArgs(uint8_t);
LEAN_EXPORT lean_object* l_Lake_Module_linkArgs(lean_object*);
LEAN_EXPORT uint8_t l_Lake_Module_buildType(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_dynlibName(lean_object*);
static lean_object* l_Lake_Module_instCheckExists___closed__0;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg___closed__1;
static lean_object* l_Lake_Module_cFile___closed__0;
static lean_object* l_Lake_Module_dynlibSuffix___closed__0;
LEAN_EXPORT lean_object* l_Lake_Module_setupFile(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_serverOptions(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_shouldPrecompile___boxed(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_findSomeRevM_x3f_find___at___00Lake_Package_findModule_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Module_keyName(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 1);
lean_inc(x_2);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_keyName___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_Module_keyName(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_instToJsonModule___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; 
x_2 = lean_ctor_get(x_1, 1);
lean_inc(x_2);
lean_dec_ref(x_1);
x_3 = 1;
x_4 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_3);
x_5 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_5, 0, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_instToJsonModule() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_instToJsonModule___lam__0), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_instToStringModule___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 1);
lean_inc(x_2);
lean_dec_ref(x_1);
x_3 = 1;
x_4 = l_Lean_Name_toString(x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lake_instToStringModule() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_instToStringModule___lam__0), 1, 0);
return x_1;
}
}
LEAN_EXPORT uint64_t l_Lake_instHashableModule___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; uint64_t x_3; 
x_2 = lean_ctor_get(x_1, 1);
x_3 = l_Lean_Name_hash___override(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instHashableModule___lam__0___boxed(lean_object* x_1) {
_start:
{
uint64_t x_2; lean_object* x_3; 
x_2 = l_Lake_instHashableModule___lam__0(x_1);
lean_dec_ref(x_1);
x_3 = lean_box_uint64(x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_instHashableModule() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_instHashableModule___lam__0___boxed), 1, 0);
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lake_instBEqModule___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_3 = lean_ctor_get(x_1, 1);
x_4 = lean_ctor_get(x_2, 1);
x_5 = lean_name_eq(x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_instBEqModule___lam__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_instBEqModule___lam__0(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
static lean_object* _init_l_Lake_instBEqModule() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_instBEqModule___lam__0___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_ModuleSet_empty___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = lean_unsigned_to_nat(16u);
x_3 = lean_mk_array(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_ModuleSet_empty___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_ModuleSet_empty___closed__0;
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_ModuleSet_empty() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_ModuleSet_empty___closed__1;
return x_1;
}
}
static lean_object* _init_l_Lake_OrdModuleSet_empty___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_instHashableModule___lam__0___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_OrdModuleSet_empty___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_instBEqModule___lam__0___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_OrdModuleSet_empty___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_OrdModuleSet_empty___closed__1;
x_2 = l_Lake_OrdModuleSet_empty___closed__0;
x_3 = l_Lake_OrdHashSet_empty(lean_box(0), x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_OrdModuleSet_empty() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_OrdModuleSet_empty___closed__2;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ModuleMap_empty(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_box(1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_LeanLib_findModule_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; uint8_t x_4; 
x_3 = lean_ctor_get(x_2, 2);
x_4 = l_Lake_LeanLibConfig_isBuildableModule___redArg(x_1, x_3);
if (x_4 == 0)
{
lean_object* x_5; 
lean_dec_ref(x_2);
lean_dec(x_1);
x_5 = lean_box(0);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_2);
lean_ctor_set(x_6, 1, x_1);
x_7 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_7, 0, x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__1___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_3 = lean_string_utf8_byte_size(x_2);
x_4 = lean_string_utf8_byte_size(x_1);
x_5 = lean_nat_dec_le(x_4, x_3);
if (x_5 == 0)
{
lean_object* x_6; 
lean_dec(x_4);
lean_dec(x_3);
lean_dec_ref(x_2);
x_6 = lean_box(0);
return x_6;
}
else
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_string_memcmp(x_2, x_1, x_7, x_7, x_4);
if (x_8 == 0)
{
lean_object* x_9; 
lean_dec(x_4);
lean_dec(x_3);
lean_dec_ref(x_2);
x_9 = lean_box(0);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
lean_inc(x_3);
lean_inc_ref(x_2);
x_10 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_10, 0, x_2);
lean_ctor_set(x_10, 1, x_7);
lean_ctor_set(x_10, 2, x_3);
x_11 = l_String_Slice_pos_x21(x_10, x_4);
lean_dec(x_4);
lean_dec_ref(x_10);
x_12 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_12, 0, x_2);
lean_ctor_set(x_12, 1, x_11);
lean_ctor_set(x_12, 2, x_3);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
}
}
}
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_String_dropPrefix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__1___redArg(x_1, x_2);
return x_4;
}
}
static lean_object* _init_l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(".lean", 5, 5);
return x_1;
}
}
static lean_object* _init_l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg___closed__0;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_2 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg___closed__0;
x_3 = lean_string_utf8_byte_size(x_1);
x_4 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg___closed__1;
x_5 = lean_nat_dec_le(x_4, x_3);
if (x_5 == 0)
{
lean_object* x_6; 
lean_dec(x_3);
lean_dec_ref(x_1);
x_6 = lean_box(0);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_nat_sub(x_3, x_4);
x_9 = lean_string_memcmp(x_1, x_2, x_8, x_7, x_4);
if (x_9 == 0)
{
lean_object* x_10; 
lean_dec(x_8);
lean_dec(x_3);
lean_dec_ref(x_1);
x_10 = lean_box(0);
return x_10;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
lean_inc_ref(x_1);
x_11 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_11, 0, x_1);
lean_ctor_set(x_11, 1, x_7);
lean_ctor_set(x_11, 2, x_3);
x_12 = l_String_Slice_pos_x21(x_11, x_8);
lean_dec(x_8);
lean_dec_ref(x_11);
x_13 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_13, 0, x_1);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 2, x_12);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
}
}
LEAN_EXPORT lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg(x_1);
return x_3;
}
}
static uint32_t _init_l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__1() {
_start:
{
uint32_t x_1; 
x_1 = l_System_FilePath_pathSeparator;
return x_1;
}
}
static lean_object* _init_l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
static lean_object* _init_l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__2() {
_start:
{
uint32_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__1;
x_2 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__0;
x_3 = lean_string_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__2;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_2 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__2;
x_3 = lean_string_utf8_byte_size(x_1);
x_4 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__3;
x_5 = lean_nat_dec_le(x_4, x_3);
if (x_5 == 0)
{
lean_object* x_6; 
lean_dec(x_3);
lean_dec_ref(x_1);
x_6 = lean_box(0);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_nat_sub(x_3, x_4);
x_9 = lean_string_memcmp(x_1, x_2, x_8, x_7, x_4);
if (x_9 == 0)
{
lean_object* x_10; 
lean_dec(x_8);
lean_dec(x_3);
lean_dec_ref(x_1);
x_10 = lean_box(0);
return x_10;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
lean_inc_ref(x_1);
x_11 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_11, 0, x_1);
lean_ctor_set(x_11, 1, x_7);
lean_ctor_set(x_11, 2, x_3);
x_12 = l_String_Slice_pos_x21(x_11, x_8);
lean_dec(x_8);
lean_dec_ref(x_11);
x_13 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_13, 0, x_1);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 2, x_12);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
}
}
LEAN_EXPORT lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_List_foldl___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
return x_1;
}
else
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_2, 0);
lean_inc(x_3);
x_4 = lean_ctor_get(x_2, 1);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = l_Lean_Name_str___override(x_1, x_3);
x_1 = x_5;
x_2 = x_4;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Lake_LeanLib_findModuleBySrc_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_12 = lean_ctor_get(x_2, 0);
x_13 = lean_ctor_get(x_12, 4);
x_14 = lean_ctor_get(x_2, 2);
x_15 = lean_ctor_get(x_12, 2);
x_16 = lean_ctor_get(x_13, 5);
x_17 = lean_ctor_get(x_14, 1);
lean_inc_ref(x_16);
x_18 = l_System_FilePath_normalize(x_16);
lean_inc_ref(x_15);
x_19 = l_Lake_joinRelative(x_15, x_18);
lean_inc_ref(x_17);
x_20 = l_System_FilePath_normalize(x_17);
x_21 = l_Lake_joinRelative(x_19, x_20);
x_22 = l_String_dropPrefix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__1___redArg(x_21, x_1);
lean_dec_ref(x_21);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_23; 
lean_dec_ref(x_2);
x_23 = lean_box(0);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; 
x_24 = lean_ctor_get(x_22, 0);
lean_inc(x_24);
lean_dec_ref(x_22);
x_25 = lean_ctor_get(x_24, 0);
lean_inc_ref(x_25);
x_26 = lean_ctor_get(x_24, 1);
lean_inc(x_26);
x_27 = lean_ctor_get(x_24, 2);
lean_inc(x_27);
x_28 = lean_unsigned_to_nat(1u);
x_29 = lean_unsigned_to_nat(0u);
x_30 = l_String_Slice_Pos_nextn(x_24, x_29, x_28);
x_31 = !lean_is_exclusive(x_24);
if (x_31 == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_32 = lean_ctor_get(x_24, 2);
lean_dec(x_32);
x_33 = lean_ctor_get(x_24, 1);
lean_dec(x_33);
x_34 = lean_ctor_get(x_24, 0);
lean_dec(x_34);
x_35 = lean_nat_add(x_26, x_30);
lean_dec(x_30);
lean_dec(x_26);
lean_ctor_set(x_24, 1, x_35);
x_36 = l_String_Slice_toString(x_24);
lean_dec_ref(x_24);
lean_inc_ref(x_36);
x_37 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg(x_36);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_38; 
x_38 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg(x_36);
x_3 = x_38;
goto block_11;
}
else
{
lean_dec_ref(x_36);
x_3 = x_37;
goto block_11;
}
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
lean_dec(x_24);
x_39 = lean_nat_add(x_26, x_30);
lean_dec(x_30);
lean_dec(x_26);
x_40 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_40, 0, x_25);
lean_ctor_set(x_40, 1, x_39);
lean_ctor_set(x_40, 2, x_27);
x_41 = l_String_Slice_toString(x_40);
lean_dec_ref(x_40);
lean_inc_ref(x_41);
x_42 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg(x_41);
if (lean_obj_tag(x_42) == 0)
{
lean_object* x_43; 
x_43 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg(x_41);
x_3 = x_43;
goto block_11;
}
else
{
lean_dec_ref(x_41);
x_3 = x_42;
goto block_11;
}
}
}
block_11:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; 
lean_dec_ref(x_2);
x_4 = lean_box(0);
return x_4;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec_ref(x_3);
x_6 = lean_box(0);
x_7 = l_String_Slice_toString(x_5);
lean_dec(x_5);
x_8 = l_System_FilePath_components(x_7);
x_9 = l_List_foldl___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__0(x_6, x_8);
x_10 = l_Lake_LeanLib_findModule_x3f(x_9, x_2);
return x_10;
}
}
}
}
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_String_dropPrefix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__1(x_1, x_2, x_3);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_String_dropPrefix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__1___redArg(x_1, x_2);
lean_dec_ref(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_findSomeRevM_x3f_find___at___00Lake_Package_findModule_x3f_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = lean_unsigned_to_nat(0u);
x_5 = lean_nat_dec_eq(x_3, x_4);
if (x_5 == 1)
{
lean_object* x_6; 
lean_dec(x_3);
lean_dec(x_1);
x_6 = lean_box(0);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_7 = lean_unsigned_to_nat(1u);
x_8 = lean_nat_sub(x_3, x_7);
lean_dec(x_3);
x_9 = lean_array_fget_borrowed(x_2, x_8);
lean_inc(x_9);
lean_inc(x_1);
x_10 = l_Lake_LeanLib_findModule_x3f(x_1, x_9);
if (lean_obj_tag(x_10) == 0)
{
x_3 = x_8;
goto _start;
}
else
{
lean_dec(x_8);
lean_dec(x_1);
return x_10;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_findSomeRevM_x3f_find___at___00Lake_Package_findModule_x3f_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Init_Data_Array_Basic_0__Array_findSomeRevM_x3f_find___at___00Lake_Package_findModule_x3f_spec__0___redArg(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_Package_findModule_x3f_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; uint8_t x_12; 
x_12 = lean_usize_dec_eq(x_4, x_5);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_13 = lean_array_uget(x_3, x_4);
x_14 = lean_ctor_get(x_13, 1);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 2);
lean_inc(x_15);
x_16 = lean_ctor_get(x_13, 3);
lean_inc(x_16);
lean_dec(x_13);
x_17 = lean_name_eq(x_15, x_1);
lean_dec(x_15);
if (x_17 == 0)
{
lean_dec(x_16);
lean_dec(x_14);
x_7 = x_6;
goto block_11;
}
else
{
lean_object* x_18; lean_object* x_19; 
lean_inc_ref(x_2);
x_18 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_18, 0, x_2);
lean_ctor_set(x_18, 1, x_14);
lean_ctor_set(x_18, 2, x_16);
x_19 = lean_array_push(x_6, x_18);
x_7 = x_19;
goto block_11;
}
}
else
{
lean_dec_ref(x_2);
return x_6;
}
block_11:
{
size_t x_8; size_t x_9; 
x_8 = 1;
x_9 = lean_usize_add(x_4, x_8);
x_4 = x_9;
x_6 = x_7;
goto _start;
}
}
}
static lean_object* _init_l_Lake_Package_findModule_x3f___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_Package_findModule_x3f___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("lean_lib", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_Package_findModule_x3f___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_Package_findModule_x3f___closed__1;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_Package_findModule_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_7 = lean_ctor_get(x_2, 11);
lean_inc_ref(x_7);
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Lake_Package_findModule_x3f___closed__0;
x_10 = lean_array_get_size(x_7);
x_11 = lean_nat_dec_lt(x_8, x_10);
if (x_11 == 0)
{
lean_dec(x_10);
lean_dec_ref(x_7);
lean_dec_ref(x_2);
x_3 = x_9;
goto block_6;
}
else
{
uint8_t x_12; 
x_12 = lean_nat_dec_le(x_10, x_10);
if (x_12 == 0)
{
lean_dec(x_10);
lean_dec_ref(x_7);
lean_dec_ref(x_2);
x_3 = x_9;
goto block_6;
}
else
{
lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; 
x_13 = l_Lake_Package_findModule_x3f___closed__2;
x_14 = 0;
x_15 = lean_usize_of_nat(x_10);
lean_dec(x_10);
x_16 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_Package_findModule_x3f_spec__1(x_13, x_2, x_7, x_14, x_15, x_9);
lean_dec_ref(x_7);
x_3 = x_16;
goto block_6;
}
}
block_6:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_array_get_size(x_3);
x_5 = l___private_Init_Data_Array_Basic_0__Array_findSomeRevM_x3f_find___at___00Lake_Package_findModule_x3f_spec__0___redArg(x_1, x_3, x_4);
lean_dec_ref(x_3);
return x_5;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_findSomeRevM_x3f_find___at___00Lake_Package_findModule_x3f_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Init_Data_Array_Basic_0__Array_findSomeRevM_x3f_find___at___00Lake_Package_findModule_x3f_spec__0(x_1, x_2, x_3, x_4);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_findSomeRevM_x3f_find___at___00Lake_Package_findModule_x3f_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Init_Data_Array_Basic_0__Array_findSomeRevM_x3f_find___at___00Lake_Package_findModule_x3f_spec__0___redArg(x_1, x_2, x_3);
lean_dec_ref(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_Package_findModule_x3f_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
size_t x_7; size_t x_8; lean_object* x_9; 
x_7 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_8 = lean_unbox_usize(x_5);
lean_dec(x_5);
x_9 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_Package_findModule_x3f_spec__1(x_1, x_2, x_3, x_7, x_8, x_6);
lean_dec_ref(x_3);
lean_dec(x_1);
return x_9;
}
}
LEAN_EXPORT uint8_t l_Option_instBEq_beq___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
if (lean_obj_tag(x_2) == 0)
{
uint8_t x_3; 
x_3 = 1;
return x_3;
}
else
{
uint8_t x_4; 
x_4 = 0;
return x_4;
}
}
else
{
if (lean_obj_tag(x_2) == 0)
{
uint8_t x_5; 
x_5 = 0;
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_6 = lean_ctor_get(x_1, 0);
x_7 = lean_ctor_get(x_2, 0);
x_8 = lean_string_dec_eq(x_6, x_7);
return x_8;
}
}
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___closed__0;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = l_Lean_Name_append(x_1, x_3);
x_7 = lean_apply_3(x_2, x_6, x_4, lean_box(0));
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___lam__0(x_1, x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_16; 
x_16 = lean_usize_dec_lt(x_5, x_4);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; 
lean_dec_ref(x_2);
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_6);
lean_ctor_set(x_17, 1, x_7);
x_18 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_18, 0, x_17);
return x_18;
}
else
{
lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_19 = lean_array_uget(x_3, x_5);
lean_inc(x_19);
x_20 = l_IO_FS_DirEntry_path(x_19);
x_21 = l_System_FilePath_isDir(x_20);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_22 = l_System_FilePath_extension(x_20);
x_23 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___closed__1;
x_24 = l_Option_instBEq_beq___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__0(x_22, x_23);
lean_dec(x_22);
if (x_24 == 0)
{
lean_dec(x_19);
x_9 = x_1;
x_10 = x_7;
x_11 = lean_box(0);
goto block_15;
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_25 = lean_ctor_get(x_19, 1);
lean_inc_ref(x_25);
lean_dec(x_19);
x_26 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__0;
x_27 = l_System_FilePath_withExtension(x_25, x_26);
x_28 = lean_box(0);
x_29 = l_Lean_Name_str___override(x_28, x_27);
lean_inc_ref(x_2);
x_30 = lean_apply_3(x_2, x_29, x_7, lean_box(0));
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; 
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
lean_dec_ref(x_30);
x_32 = lean_ctor_get(x_31, 1);
lean_inc(x_32);
lean_dec(x_31);
x_9 = x_1;
x_10 = x_32;
x_11 = lean_box(0);
goto block_15;
}
else
{
lean_dec_ref(x_2);
return x_30;
}
}
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_33 = lean_ctor_get(x_19, 1);
lean_inc_ref(x_33);
lean_dec(x_19);
x_34 = lean_box(0);
x_35 = l_Lean_Name_str___override(x_34, x_33);
lean_inc_ref(x_2);
x_36 = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___lam__0___boxed), 5, 2);
lean_closure_set(x_36, 0, x_35);
lean_closure_set(x_36, 1, x_2);
x_37 = l_Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0(x_20, x_36, x_7);
lean_dec_ref(x_20);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_38; lean_object* x_39; 
x_38 = lean_ctor_get(x_37, 0);
lean_inc(x_38);
lean_dec_ref(x_37);
x_39 = lean_ctor_get(x_38, 1);
lean_inc(x_39);
lean_dec(x_38);
x_9 = x_1;
x_10 = x_39;
x_11 = lean_box(0);
goto block_15;
}
else
{
lean_dec_ref(x_2);
return x_37;
}
}
}
block_15:
{
size_t x_12; size_t x_13; 
x_12 = 1;
x_13 = lean_usize_add(x_5, x_12);
x_5 = x_13;
x_6 = x_9;
x_7 = x_10;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
x_5 = lean_io_read_dir(x_1);
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec_ref(x_5);
x_7 = lean_box(0);
x_8 = lean_array_size(x_6);
x_9 = 0;
x_10 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1(x_7, x_2, x_6, x_8, x_9, x_7, x_3);
lean_dec(x_6);
if (lean_obj_tag(x_10) == 0)
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; uint8_t x_13; 
x_12 = lean_ctor_get(x_10, 0);
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_14; 
x_14 = lean_ctor_get(x_12, 0);
lean_dec(x_14);
lean_ctor_set(x_12, 0, x_7);
return x_10;
}
else
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_ctor_get(x_12, 1);
lean_inc(x_15);
lean_dec(x_12);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_7);
lean_ctor_set(x_16, 1, x_15);
lean_ctor_set(x_10, 0, x_16);
return x_10;
}
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_17 = lean_ctor_get(x_10, 0);
lean_inc(x_17);
lean_dec(x_10);
x_18 = lean_ctor_get(x_17, 1);
lean_inc(x_18);
if (lean_is_exclusive(x_17)) {
 lean_ctor_release(x_17, 0);
 lean_ctor_release(x_17, 1);
 x_19 = x_17;
} else {
 lean_dec_ref(x_17);
 x_19 = lean_box(0);
}
if (lean_is_scalar(x_19)) {
 x_20 = lean_alloc_ctor(0, 2, 0);
} else {
 x_20 = x_19;
}
lean_ctor_set(x_20, 0, x_7);
lean_ctor_set(x_20, 1, x_18);
x_21 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_21, 0, x_20);
return x_21;
}
}
else
{
return x_10;
}
}
else
{
uint8_t x_22; 
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_22 = !lean_is_exclusive(x_5);
if (x_22 == 0)
{
return x_5;
}
else
{
lean_object* x_23; lean_object* x_24; 
x_23 = lean_ctor_get(x_5, 0);
lean_inc(x_23);
lean_dec(x_5);
x_24 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_24, 0, x_23);
return x_24;
}
}
}
}
static lean_object* _init_l_Lake_LeanLib_getModuleArray___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_5 = lean_box(0);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_1);
lean_ctor_set(x_6, 1, x_2);
x_7 = lean_array_push(x_3, x_6);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_5);
lean_ctor_set(x_8, 1, x_7);
x_9 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_9, 0, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__0(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = l_Lean_Name_append(x_1, x_3);
x_7 = lean_apply_3(x_2, x_6, x_4, lean_box(0));
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__1(x_1, x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_8; uint8_t x_16; 
x_16 = lean_usize_dec_eq(x_3, x_4);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_17 = lean_ctor_get(x_1, 0);
x_18 = lean_ctor_get(x_17, 4);
x_19 = lean_ctor_get(x_1, 2);
x_20 = lean_ctor_get(x_17, 2);
x_21 = lean_ctor_get(x_18, 5);
x_22 = lean_ctor_get(x_19, 1);
lean_inc_ref(x_1);
x_23 = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__0___boxed), 4, 1);
lean_closure_set(x_23, 0, x_1);
x_24 = lean_array_uget(x_2, x_3);
lean_inc_ref(x_21);
x_25 = l_System_FilePath_normalize(x_21);
lean_inc_ref(x_20);
x_26 = l_Lake_joinRelative(x_20, x_25);
lean_inc_ref(x_22);
x_27 = l_System_FilePath_normalize(x_22);
x_28 = l_Lake_joinRelative(x_26, x_27);
switch (lean_obj_tag(x_24)) {
case 0:
{
lean_object* x_29; lean_object* x_30; 
lean_dec_ref(x_28);
lean_dec_ref(x_23);
x_29 = lean_ctor_get(x_24, 0);
lean_inc(x_29);
lean_dec_ref(x_24);
lean_inc_ref(x_1);
x_30 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__0(x_1, x_29, x_6);
x_8 = x_30;
goto block_15;
}
case 1:
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_31 = lean_ctor_get(x_24, 0);
lean_inc(x_31);
lean_dec_ref(x_24);
lean_inc(x_31);
x_32 = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__1___boxed), 5, 2);
lean_closure_set(x_32, 0, x_31);
lean_closure_set(x_32, 1, x_23);
x_33 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__0;
x_34 = l_Lean_modToFilePath(x_28, x_31, x_33);
lean_dec_ref(x_28);
x_35 = l_Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0(x_34, x_32, x_6);
lean_dec_ref(x_34);
x_8 = x_35;
goto block_15;
}
default: 
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_36 = lean_ctor_get(x_24, 0);
lean_inc(x_36);
lean_dec_ref(x_24);
lean_inc(x_36);
lean_inc_ref(x_1);
x_37 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__0(x_1, x_36, x_6);
x_38 = lean_ctor_get(x_37, 0);
lean_inc(x_38);
lean_dec_ref(x_37);
x_39 = lean_ctor_get(x_38, 1);
lean_inc(x_39);
lean_dec(x_38);
lean_inc(x_36);
x_40 = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___lam__1___boxed), 5, 2);
lean_closure_set(x_40, 0, x_36);
lean_closure_set(x_40, 1, x_23);
x_41 = l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__0;
x_42 = l_Lean_modToFilePath(x_28, x_36, x_41);
lean_dec_ref(x_28);
x_43 = l_Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0(x_42, x_40, x_39);
lean_dec_ref(x_42);
x_8 = x_43;
goto block_15;
}
}
}
else
{
lean_object* x_44; lean_object* x_45; 
lean_dec_ref(x_1);
x_44 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_44, 0, x_5);
lean_ctor_set(x_44, 1, x_6);
x_45 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_45, 0, x_44);
return x_45;
}
block_15:
{
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; size_t x_13; 
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
lean_dec_ref(x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec(x_9);
x_12 = 1;
x_13 = lean_usize_add(x_3, x_12);
x_3 = x_13;
x_5 = x_10;
x_6 = x_11;
goto _start;
}
else
{
lean_dec_ref(x_1);
return x_8;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_LeanLib_getModuleArray(lean_object* x_1) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_3 = lean_ctor_get(x_1, 2);
x_4 = lean_ctor_get(x_3, 3);
lean_inc_ref(x_4);
x_5 = lean_unsigned_to_nat(0u);
x_6 = lean_array_get_size(x_4);
x_7 = l_Lake_LeanLib_getModuleArray___closed__0;
x_8 = lean_nat_dec_lt(x_5, x_6);
if (x_8 == 0)
{
lean_object* x_9; 
lean_dec(x_6);
lean_dec_ref(x_4);
lean_dec_ref(x_1);
x_9 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_9, 0, x_7);
return x_9;
}
else
{
uint8_t x_10; 
x_10 = lean_nat_dec_le(x_6, x_6);
if (x_10 == 0)
{
lean_object* x_11; 
lean_dec(x_6);
lean_dec_ref(x_4);
lean_dec_ref(x_1);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_7);
return x_11;
}
else
{
lean_object* x_12; size_t x_13; size_t x_14; lean_object* x_15; 
x_12 = lean_box(0);
x_13 = 0;
x_14 = lean_usize_of_nat(x_6);
lean_dec(x_6);
x_15 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3(x_1, x_4, x_13, x_14, x_12, x_7);
lean_dec_ref(x_4);
if (lean_obj_tag(x_15) == 0)
{
uint8_t x_16; 
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; 
x_17 = lean_ctor_get(x_15, 0);
x_18 = lean_ctor_get(x_17, 1);
lean_inc(x_18);
lean_dec(x_17);
lean_ctor_set(x_15, 0, x_18);
return x_15;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_15, 0);
lean_inc(x_19);
lean_dec(x_15);
x_20 = lean_ctor_get(x_19, 1);
lean_inc(x_20);
lean_dec(x_19);
x_21 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_21, 0, x_20);
return x_21;
}
}
else
{
uint8_t x_22; 
x_22 = !lean_is_exclusive(x_15);
if (x_22 == 0)
{
return x_15;
}
else
{
lean_object* x_23; lean_object* x_24; 
x_23 = lean_ctor_get(x_15, 0);
lean_inc(x_23);
lean_dec(x_15);
x_24 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_24, 0, x_23);
return x_24;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Option_instBEq_beq___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Option_instBEq_beq___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__0(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0(x_1, x_2, x_3);
lean_dec_ref(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_LeanLib_getModuleArray___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_LeanLib_getModuleArray(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
size_t x_9; size_t x_10; lean_object* x_11; 
x_9 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_10 = lean_unbox_usize(x_5);
lean_dec(x_5);
x_11 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1(x_1, x_2, x_3, x_9, x_10, x_6, x_7);
lean_dec_ref(x_3);
return x_11;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
size_t x_8; size_t x_9; lean_object* x_10; 
x_8 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_9 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_10 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_LeanLib_getModuleArray_spec__3(x_1, x_2, x_8, x_9, x_5, x_6);
lean_dec_ref(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Array_filterMapM___at___00Lake_LeanLib_rootModules_spec__0_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; uint8_t x_11; 
x_11 = lean_usize_dec_eq(x_3, x_4);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_array_uget(x_2, x_3);
lean_inc_ref(x_1);
x_13 = l_Lake_LeanLib_findModule_x3f(x_12, x_1);
if (lean_obj_tag(x_13) == 0)
{
x_6 = x_5;
goto block_10;
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_ctor_get(x_13, 0);
lean_inc(x_14);
lean_dec_ref(x_13);
x_15 = lean_array_push(x_5, x_14);
x_6 = x_15;
goto block_10;
}
}
else
{
lean_dec_ref(x_1);
return x_5;
}
block_10:
{
size_t x_7; size_t x_8; 
x_7 = 1;
x_8 = lean_usize_add(x_3, x_7);
x_3 = x_8;
x_5 = x_6;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Array_filterMapM___at___00Lake_LeanLib_rootModules_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l_Lake_LeanLib_getModuleArray___closed__0;
x_6 = lean_nat_dec_lt(x_3, x_4);
if (x_6 == 0)
{
lean_dec_ref(x_1);
return x_5;
}
else
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_array_get_size(x_2);
x_8 = lean_nat_dec_le(x_4, x_7);
lean_dec(x_7);
if (x_8 == 0)
{
lean_dec_ref(x_1);
return x_5;
}
else
{
size_t x_9; size_t x_10; lean_object* x_11; 
x_9 = lean_usize_of_nat(x_3);
x_10 = lean_usize_of_nat(x_4);
x_11 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Array_filterMapM___at___00Lake_LeanLib_rootModules_spec__0_spec__0(x_1, x_2, x_9, x_10, x_5);
return x_11;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_LeanLib_rootModules(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = lean_ctor_get(x_1, 2);
x_3 = lean_ctor_get(x_2, 2);
lean_inc_ref(x_3);
x_4 = lean_unsigned_to_nat(0u);
x_5 = lean_array_get_size(x_3);
x_6 = l_Array_filterMapM___at___00Lake_LeanLib_rootModules_spec__0(x_1, x_3, x_4, x_5);
lean_dec(x_5);
lean_dec_ref(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Array_filterMapM___at___00Lake_LeanLib_rootModules_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Array_filterMapM___at___00Lake_LeanLib_rootModules_spec__0(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Array_filterMapM___at___00Lake_LeanLib_rootModules_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
size_t x_6; size_t x_7; lean_object* x_8; 
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_8 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Array_filterMapM___at___00Lake_LeanLib_rootModules_spec__0_spec__0(x_1, x_2, x_6, x_7, x_5);
lean_dec_ref(x_2);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_pkg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_pkg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_Module_pkg(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_rootDir(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_2, 2);
lean_inc(x_5);
lean_dec_ref(x_2);
x_6 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_6);
lean_dec_ref(x_3);
x_7 = lean_ctor_get(x_4, 5);
lean_inc_ref(x_7);
lean_dec_ref(x_4);
x_8 = lean_ctor_get(x_5, 1);
lean_inc_ref(x_8);
lean_dec(x_5);
x_9 = l_System_FilePath_normalize(x_7);
x_10 = l_Lake_joinRelative(x_6, x_9);
x_11 = l_System_FilePath_normalize(x_8);
x_12 = l_Lake_joinRelative(x_10, x_11);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_filePath(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
lean_dec_ref(x_3);
x_5 = l_Lean_modToFilePath(x_1, x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_filePath___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lake_Module_filePath(x_1, x_2, x_3);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_srcPath(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_4, 4);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_3, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_2, 1);
lean_inc(x_7);
lean_dec_ref(x_2);
x_8 = lean_ctor_get(x_4, 2);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = lean_ctor_get(x_5, 5);
lean_inc_ref(x_9);
lean_dec_ref(x_5);
x_10 = lean_ctor_get(x_6, 1);
lean_inc_ref(x_10);
lean_dec(x_6);
x_11 = l_System_FilePath_normalize(x_9);
x_12 = l_Lake_joinRelative(x_8, x_11);
x_13 = l_System_FilePath_normalize(x_10);
x_14 = l_Lake_joinRelative(x_12, x_13);
x_15 = l_Lean_modToFilePath(x_14, x_7, x_1);
lean_dec_ref(x_14);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_srcPath___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_Module_srcPath(x_1, x_2);
lean_dec_ref(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leanFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_2, 2);
lean_inc(x_5);
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
lean_dec_ref(x_1);
x_7 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_7);
lean_dec_ref(x_3);
x_8 = lean_ctor_get(x_4, 5);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = lean_ctor_get(x_5, 1);
lean_inc_ref(x_9);
lean_dec(x_5);
x_10 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___closed__0;
x_11 = l_System_FilePath_normalize(x_8);
x_12 = l_Lake_joinRelative(x_7, x_11);
x_13 = l_System_FilePath_normalize(x_9);
x_14 = l_Lake_joinRelative(x_12, x_13);
x_15 = l_Lean_modToFilePath(x_14, x_6, x_10);
lean_dec_ref(x_14);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_relLeanFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_2, 2);
lean_inc(x_5);
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
lean_dec_ref(x_1);
x_7 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_7);
lean_dec_ref(x_3);
x_8 = lean_ctor_get(x_4, 5);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = lean_ctor_get(x_5, 1);
lean_inc_ref(x_9);
lean_dec(x_5);
x_10 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___closed__0;
x_11 = l_System_FilePath_normalize(x_8);
lean_inc_ref(x_7);
x_12 = l_Lake_joinRelative(x_7, x_11);
x_13 = l_System_FilePath_normalize(x_9);
x_14 = l_Lake_joinRelative(x_12, x_13);
x_15 = l_Lean_modToFilePath(x_14, x_6, x_10);
lean_dec_ref(x_14);
x_16 = l_Lake_relPathFrom(x_7, x_15);
lean_dec_ref(x_7);
return x_16;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leanLibPath(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_4, 4);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_2, 1);
lean_inc(x_6);
lean_dec_ref(x_2);
x_7 = lean_ctor_get(x_4, 2);
lean_inc_ref(x_7);
lean_dec_ref(x_4);
x_8 = lean_ctor_get(x_5, 6);
lean_inc_ref(x_8);
x_9 = lean_ctor_get(x_5, 7);
lean_inc_ref(x_9);
lean_dec_ref(x_5);
x_10 = l_System_FilePath_normalize(x_8);
x_11 = l_Lake_joinRelative(x_7, x_10);
x_12 = l_System_FilePath_normalize(x_9);
x_13 = l_Lake_joinRelative(x_11, x_12);
x_14 = l_Lean_modToFilePath(x_13, x_6, x_1);
lean_dec_ref(x_13);
return x_14;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leanLibPath___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_Module_leanLibPath(x_1, x_2);
lean_dec_ref(x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_Module_oleanFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("olean", 5, 5);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_6);
lean_dec_ref(x_3);
x_7 = lean_ctor_get(x_4, 6);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_4, 7);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = l_Lake_Module_oleanFile___closed__0;
x_10 = l_System_FilePath_normalize(x_7);
x_11 = l_Lake_joinRelative(x_6, x_10);
x_12 = l_System_FilePath_normalize(x_8);
x_13 = l_Lake_joinRelative(x_11, x_12);
x_14 = l_Lean_modToFilePath(x_13, x_5, x_9);
lean_dec_ref(x_13);
return x_14;
}
}
static lean_object* _init_l_Lake_Module_oleanServerFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("olean.server", 12, 12);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_6);
lean_dec_ref(x_3);
x_7 = lean_ctor_get(x_4, 6);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_4, 7);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = l_Lake_Module_oleanServerFile___closed__0;
x_10 = l_System_FilePath_normalize(x_7);
x_11 = l_Lake_joinRelative(x_6, x_10);
x_12 = l_System_FilePath_normalize(x_8);
x_13 = l_Lake_joinRelative(x_11, x_12);
x_14 = l_Lean_modToFilePath(x_13, x_5, x_9);
lean_dec_ref(x_13);
return x_14;
}
}
static lean_object* _init_l_Lake_Module_oleanPrivateFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("olean.private", 13, 13);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_6);
lean_dec_ref(x_3);
x_7 = lean_ctor_get(x_4, 6);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_4, 7);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = l_Lake_Module_oleanPrivateFile___closed__0;
x_10 = l_System_FilePath_normalize(x_7);
x_11 = l_Lake_joinRelative(x_6, x_10);
x_12 = l_System_FilePath_normalize(x_8);
x_13 = l_Lake_joinRelative(x_11, x_12);
x_14 = l_Lean_modToFilePath(x_13, x_5, x_9);
lean_dec_ref(x_13);
return x_14;
}
}
static lean_object* _init_l_Lake_Module_ileanFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ilean", 5, 5);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_ileanFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_6);
lean_dec_ref(x_3);
x_7 = lean_ctor_get(x_4, 6);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_4, 7);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = l_Lake_Module_ileanFile___closed__0;
x_10 = l_System_FilePath_normalize(x_7);
x_11 = l_Lake_joinRelative(x_6, x_10);
x_12 = l_System_FilePath_normalize(x_8);
x_13 = l_Lake_joinRelative(x_11, x_12);
x_14 = l_Lean_modToFilePath(x_13, x_5, x_9);
lean_dec_ref(x_13);
return x_14;
}
}
static lean_object* _init_l_Lake_Module_traceFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("trace", 5, 5);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_traceFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_6);
lean_dec_ref(x_3);
x_7 = lean_ctor_get(x_4, 6);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_4, 7);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = l_Lake_Module_traceFile___closed__0;
x_10 = l_System_FilePath_normalize(x_7);
x_11 = l_Lake_joinRelative(x_6, x_10);
x_12 = l_System_FilePath_normalize(x_8);
x_13 = l_Lake_joinRelative(x_11, x_12);
x_14 = l_Lean_modToFilePath(x_13, x_5, x_9);
lean_dec_ref(x_13);
return x_14;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_irPath(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_4, 4);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_2, 1);
lean_inc(x_6);
lean_dec_ref(x_2);
x_7 = lean_ctor_get(x_4, 2);
lean_inc_ref(x_7);
lean_dec_ref(x_4);
x_8 = lean_ctor_get(x_5, 6);
lean_inc_ref(x_8);
x_9 = lean_ctor_get(x_5, 10);
lean_inc_ref(x_9);
lean_dec_ref(x_5);
x_10 = l_System_FilePath_normalize(x_8);
x_11 = l_Lake_joinRelative(x_7, x_10);
x_12 = l_System_FilePath_normalize(x_9);
x_13 = l_Lake_joinRelative(x_11, x_12);
x_14 = l_Lean_modToFilePath(x_13, x_6, x_1);
lean_dec_ref(x_13);
return x_14;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_irPath___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_Module_irPath(x_1, x_2);
lean_dec_ref(x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_Module_setupFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("setup.json", 10, 10);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_setupFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_6);
lean_dec_ref(x_3);
x_7 = lean_ctor_get(x_4, 6);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_4, 10);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = l_Lake_Module_setupFile___closed__0;
x_10 = l_System_FilePath_normalize(x_7);
x_11 = l_Lake_joinRelative(x_6, x_10);
x_12 = l_System_FilePath_normalize(x_8);
x_13 = l_Lake_joinRelative(x_11, x_12);
x_14 = l_Lean_modToFilePath(x_13, x_5, x_9);
lean_dec_ref(x_13);
return x_14;
}
}
static lean_object* _init_l_Lake_Module_irFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ir", 2, 2);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_irFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_6);
lean_dec_ref(x_3);
x_7 = lean_ctor_get(x_4, 6);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_4, 7);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = l_Lake_Module_irFile___closed__0;
x_10 = l_System_FilePath_normalize(x_7);
x_11 = l_Lake_joinRelative(x_6, x_10);
x_12 = l_System_FilePath_normalize(x_8);
x_13 = l_Lake_joinRelative(x_11, x_12);
x_14 = l_Lean_modToFilePath(x_13, x_5, x_9);
lean_dec_ref(x_13);
return x_14;
}
}
static lean_object* _init_l_Lake_Module_cFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("c", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_cFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_6);
lean_dec_ref(x_3);
x_7 = lean_ctor_get(x_4, 6);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_4, 10);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = l_Lake_Module_cFile___closed__0;
x_10 = l_System_FilePath_normalize(x_7);
x_11 = l_Lake_joinRelative(x_6, x_10);
x_12 = l_System_FilePath_normalize(x_8);
x_13 = l_Lake_joinRelative(x_11, x_12);
x_14 = l_Lean_modToFilePath(x_13, x_5, x_9);
lean_dec_ref(x_13);
return x_14;
}
}
static lean_object* _init_l_Lake_Module_coExportFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("c.o.export", 10, 10);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_coExportFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_6);
lean_dec_ref(x_3);
x_7 = lean_ctor_get(x_4, 6);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_4, 10);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = l_Lake_Module_coExportFile___closed__0;
x_10 = l_System_FilePath_normalize(x_7);
x_11 = l_Lake_joinRelative(x_6, x_10);
x_12 = l_System_FilePath_normalize(x_8);
x_13 = l_Lake_joinRelative(x_11, x_12);
x_14 = l_Lean_modToFilePath(x_13, x_5, x_9);
lean_dec_ref(x_13);
return x_14;
}
}
static lean_object* _init_l_Lake_Module_coNoExportFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("c.o.noexport", 12, 12);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_coNoExportFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_6);
lean_dec_ref(x_3);
x_7 = lean_ctor_get(x_4, 6);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_4, 10);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = l_Lake_Module_coNoExportFile___closed__0;
x_10 = l_System_FilePath_normalize(x_7);
x_11 = l_Lake_joinRelative(x_6, x_10);
x_12 = l_System_FilePath_normalize(x_8);
x_13 = l_Lake_joinRelative(x_11, x_12);
x_14 = l_Lean_modToFilePath(x_13, x_5, x_9);
lean_dec_ref(x_13);
return x_14;
}
}
static lean_object* _init_l_Lake_Module_bcFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("bc", 2, 2);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_bcFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_6);
lean_dec_ref(x_3);
x_7 = lean_ctor_get(x_4, 6);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_4, 10);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = l_Lake_Module_bcFile___closed__0;
x_10 = l_System_FilePath_normalize(x_7);
x_11 = l_Lake_joinRelative(x_6, x_10);
x_12 = l_System_FilePath_normalize(x_8);
x_13 = l_Lake_joinRelative(x_11, x_12);
x_14 = l_Lean_modToFilePath(x_13, x_5, x_9);
lean_dec_ref(x_13);
return x_14;
}
}
static uint8_t _init_l_Lake_Module_bcFile_x3f___closed__0() {
_start:
{
lean_object* x_1; uint8_t x_2; 
x_1 = lean_box(0);
x_2 = lean_internal_has_llvm_backend(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_bcFile_x3f(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = l_Lake_Module_bcFile_x3f___closed__0;
if (x_2 == 0)
{
lean_object* x_3; 
lean_dec_ref(x_1);
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_4 = lean_ctor_get(x_1, 0);
x_5 = lean_ctor_get(x_4, 0);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_5, 4);
lean_inc_ref(x_6);
x_7 = lean_ctor_get(x_1, 1);
lean_inc(x_7);
lean_dec_ref(x_1);
x_8 = lean_ctor_get(x_5, 2);
lean_inc_ref(x_8);
lean_dec_ref(x_5);
x_9 = lean_ctor_get(x_6, 6);
lean_inc_ref(x_9);
x_10 = lean_ctor_get(x_6, 10);
lean_inc_ref(x_10);
lean_dec_ref(x_6);
x_11 = l_Lake_Module_bcFile___closed__0;
x_12 = l_System_FilePath_normalize(x_9);
x_13 = l_Lake_joinRelative(x_8, x_12);
x_14 = l_System_FilePath_normalize(x_10);
x_15 = l_Lake_joinRelative(x_13, x_14);
x_16 = l_Lean_modToFilePath(x_15, x_7, x_11);
lean_dec_ref(x_15);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
return x_17;
}
}
}
static lean_object* _init_l_Lake_Module_bcoFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("bc.o", 4, 4);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_bcoFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_6);
lean_dec_ref(x_3);
x_7 = lean_ctor_get(x_4, 6);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_4, 10);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = l_Lake_Module_bcoFile___closed__0;
x_10 = l_System_FilePath_normalize(x_7);
x_11 = l_Lake_joinRelative(x_6, x_10);
x_12 = l_System_FilePath_normalize(x_8);
x_13 = l_Lake_joinRelative(x_11, x_12);
x_14 = l_Lean_modToFilePath(x_13, x_5, x_9);
lean_dec_ref(x_13);
return x_14;
}
}
static lean_object* _init_l_Lake_Module_dynlibSuffix___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("-1", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lake_Module_dynlibSuffix() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_Module_dynlibSuffix___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_dynlibName(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
lean_dec_ref(x_1);
x_4 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_4);
lean_dec_ref(x_2);
x_5 = l_Lake_Package_id_x3f(x_4);
x_6 = l_Lean_mkModuleInitializationStem(x_3, x_5);
lean_dec(x_5);
return x_6;
}
}
static lean_object* _init_l_Lake_Module_dynlibFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(".", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lake_Module_dynlibFile___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_sharedLibExt;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_dynlibFile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_ctor_get(x_3, 2);
x_7 = lean_ctor_get(x_4, 6);
x_8 = lean_ctor_get(x_4, 7);
lean_inc_ref(x_7);
x_9 = l_System_FilePath_normalize(x_7);
lean_inc_ref(x_6);
x_10 = l_Lake_joinRelative(x_6, x_9);
lean_inc_ref(x_8);
x_11 = l_System_FilePath_normalize(x_8);
x_12 = l_Lake_joinRelative(x_10, x_11);
x_13 = l_Lake_Package_id_x3f(x_3);
x_14 = l_Lean_mkModuleInitializationStem(x_5, x_13);
lean_dec(x_13);
x_15 = l_Lake_Module_dynlibFile___closed__0;
x_16 = lean_string_append(x_14, x_15);
x_17 = l_Lake_Module_dynlibFile___closed__1;
x_18 = lean_string_append(x_16, x_17);
x_19 = l_Lake_joinRelative(x_12, x_18);
return x_19;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_serverOptions(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_24; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 4);
x_5 = lean_ctor_get(x_4, 1);
x_6 = lean_ctor_get(x_2, 2);
x_7 = lean_ctor_get(x_6, 0);
x_8 = lean_ctor_get_uint8(x_5, sizeof(void*)*13);
x_9 = lean_ctor_get(x_5, 0);
x_10 = lean_ctor_get(x_5, 4);
x_11 = lean_ctor_get_uint8(x_7, sizeof(void*)*13);
x_12 = lean_ctor_get(x_7, 0);
x_13 = lean_ctor_get(x_7, 4);
x_14 = lean_box(1);
x_24 = l_Lake_instOrdBuildType_ord(x_8, x_11);
if (x_24 == 2)
{
x_15 = x_11;
goto block_23;
}
else
{
x_15 = x_8;
goto block_23;
}
block_23:
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_16 = l_Lake_BuildType_leanOptions(x_15);
x_17 = l_Lean_LeanOptions_append(x_14, x_16);
x_18 = l_Lean_LeanOptions_ofArray(x_9);
x_19 = l_Lean_LeanOptions_appendArray(x_18, x_10);
x_20 = l_Lean_LeanOptions_append(x_17, x_19);
x_21 = l_Lean_LeanOptions_appendArray(x_20, x_12);
x_22 = l_Lean_LeanOptions_appendArray(x_21, x_13);
return x_22;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_serverOptions___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_Module_serverOptions(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT uint8_t l_Lake_Module_buildType(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; uint8_t x_9; uint8_t x_10; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 4);
x_5 = lean_ctor_get(x_4, 1);
x_6 = lean_ctor_get(x_2, 2);
x_7 = lean_ctor_get(x_6, 0);
x_8 = lean_ctor_get_uint8(x_5, sizeof(void*)*13);
x_9 = lean_ctor_get_uint8(x_7, sizeof(void*)*13);
x_10 = l_Lake_instOrdBuildType_ord(x_8, x_9);
if (x_10 == 2)
{
return x_9;
}
else
{
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_buildType___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lake_Module_buildType(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Lake_Module_backend(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; uint8_t x_9; uint8_t x_10; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 2);
x_4 = lean_ctor_get(x_3, 0);
x_5 = lean_ctor_get(x_2, 0);
x_6 = lean_ctor_get(x_5, 4);
x_7 = lean_ctor_get(x_6, 1);
x_8 = lean_ctor_get_uint8(x_4, sizeof(void*)*13 + 1);
x_9 = lean_ctor_get_uint8(x_7, sizeof(void*)*13 + 1);
x_10 = l_Lake_Backend_orPreferLeft(x_8, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_backend___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lake_Module_backend(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Lake_Module_allowImportAll(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 2);
x_4 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_5 = lean_ctor_get(x_2, 0);
x_6 = lean_ctor_get(x_5, 4);
x_7 = lean_ctor_get_uint8(x_6, sizeof(void*)*26 + 6);
return x_7;
}
else
{
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_allowImportAll___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lake_Module_allowImportAll(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_dynlibs(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 4);
x_5 = lean_ctor_get(x_4, 1);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_2, 2);
lean_inc(x_6);
lean_dec_ref(x_2);
x_7 = lean_ctor_get(x_6, 0);
lean_inc_ref(x_7);
lean_dec(x_6);
x_8 = lean_ctor_get(x_5, 11);
lean_inc_ref(x_8);
lean_dec_ref(x_5);
x_9 = lean_ctor_get(x_7, 11);
lean_inc_ref(x_9);
lean_dec_ref(x_7);
x_10 = l_Array_append___redArg(x_8, x_9);
lean_dec_ref(x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_plugins(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 4);
x_5 = lean_ctor_get(x_4, 1);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_2, 2);
lean_inc(x_6);
lean_dec_ref(x_2);
x_7 = lean_ctor_get(x_6, 0);
lean_inc_ref(x_7);
lean_dec(x_6);
x_8 = lean_ctor_get(x_5, 12);
lean_inc_ref(x_8);
lean_dec_ref(x_5);
x_9 = lean_ctor_get(x_7, 12);
lean_inc_ref(x_9);
lean_dec_ref(x_7);
x_10 = l_Array_append___redArg(x_8, x_9);
lean_dec_ref(x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leanOptions(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; uint8_t x_12; uint8_t x_18; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 4);
x_5 = lean_ctor_get(x_4, 1);
x_6 = lean_ctor_get(x_2, 2);
x_7 = lean_ctor_get(x_6, 0);
x_8 = lean_ctor_get_uint8(x_5, sizeof(void*)*13);
x_9 = lean_ctor_get(x_5, 0);
x_10 = lean_ctor_get_uint8(x_7, sizeof(void*)*13);
x_11 = lean_ctor_get(x_7, 0);
x_18 = l_Lake_instOrdBuildType_ord(x_8, x_10);
if (x_18 == 2)
{
x_12 = x_10;
goto block_17;
}
else
{
x_12 = x_8;
goto block_17;
}
block_17:
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_13 = l_Lake_BuildType_leanOptions(x_12);
x_14 = l_Lean_LeanOptions_ofArray(x_9);
x_15 = l_Lean_LeanOptions_append(x_13, x_14);
x_16 = l_Lean_LeanOptions_appendArray(x_15, x_11);
return x_16;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leanOptions___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_Module_leanOptions(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leanArgs(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; uint8_t x_12; uint8_t x_17; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 4);
x_5 = lean_ctor_get(x_4, 1);
x_6 = lean_ctor_get(x_2, 2);
x_7 = lean_ctor_get(x_6, 0);
x_8 = lean_ctor_get_uint8(x_5, sizeof(void*)*13);
x_9 = lean_ctor_get(x_5, 1);
x_10 = lean_ctor_get_uint8(x_7, sizeof(void*)*13);
x_11 = lean_ctor_get(x_7, 1);
x_17 = l_Lake_instOrdBuildType_ord(x_8, x_10);
if (x_17 == 2)
{
x_12 = x_10;
goto block_16;
}
else
{
x_12 = x_8;
goto block_16;
}
block_16:
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = l_Lake_BuildType_leanArgs(x_12);
x_14 = l_Array_append___redArg(x_13, x_9);
x_15 = l_Array_append___redArg(x_14, x_11);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leanArgs___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_Module_leanArgs(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_weakLeanArgs(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 4);
x_5 = lean_ctor_get(x_4, 1);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_2, 2);
lean_inc(x_6);
lean_dec_ref(x_2);
x_7 = lean_ctor_get(x_6, 0);
lean_inc_ref(x_7);
lean_dec(x_6);
x_8 = lean_ctor_get(x_5, 2);
lean_inc_ref(x_8);
lean_dec_ref(x_5);
x_9 = lean_ctor_get(x_7, 2);
lean_inc_ref(x_9);
lean_dec_ref(x_7);
x_10 = l_Array_append___redArg(x_8, x_9);
lean_dec_ref(x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leancArgs(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; uint8_t x_12; uint8_t x_17; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 4);
x_5 = lean_ctor_get(x_4, 1);
x_6 = lean_ctor_get(x_2, 2);
x_7 = lean_ctor_get(x_6, 0);
x_8 = lean_ctor_get_uint8(x_5, sizeof(void*)*13);
x_9 = lean_ctor_get(x_5, 3);
x_10 = lean_ctor_get_uint8(x_7, sizeof(void*)*13);
x_11 = lean_ctor_get(x_7, 3);
x_17 = l_Lake_instOrdBuildType_ord(x_8, x_10);
if (x_17 == 2)
{
x_12 = x_10;
goto block_16;
}
else
{
x_12 = x_8;
goto block_16;
}
block_16:
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = l_Lake_BuildType_leancArgs(x_12);
x_14 = l_Array_append___redArg(x_13, x_9);
x_15 = l_Array_append___redArg(x_14, x_11);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leancArgs___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_Module_leancArgs(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_weakLeancArgs(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 4);
x_5 = lean_ctor_get(x_4, 1);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_2, 2);
lean_inc(x_6);
lean_dec_ref(x_2);
x_7 = lean_ctor_get(x_6, 0);
lean_inc_ref(x_7);
lean_dec(x_6);
x_8 = lean_ctor_get(x_5, 5);
lean_inc_ref(x_8);
lean_dec_ref(x_5);
x_9 = lean_ctor_get(x_7, 5);
lean_inc_ref(x_9);
lean_dec_ref(x_7);
x_10 = l_Array_append___redArg(x_8, x_9);
lean_dec_ref(x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_linkArgs(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 4);
x_5 = lean_ctor_get(x_4, 1);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_2, 2);
lean_inc(x_6);
lean_dec_ref(x_2);
x_7 = lean_ctor_get(x_6, 0);
lean_inc_ref(x_7);
lean_dec(x_6);
x_8 = lean_ctor_get(x_5, 8);
lean_inc_ref(x_8);
lean_dec_ref(x_5);
x_9 = lean_ctor_get(x_7, 8);
lean_inc_ref(x_9);
lean_dec_ref(x_7);
x_10 = l_Array_append___redArg(x_8, x_9);
lean_dec_ref(x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_weakLinkArgs(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 4);
x_5 = lean_ctor_get(x_4, 1);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_2, 2);
lean_inc(x_6);
lean_dec_ref(x_2);
x_7 = lean_ctor_get(x_6, 0);
lean_inc_ref(x_7);
lean_dec(x_6);
x_8 = lean_ctor_get(x_5, 9);
lean_inc_ref(x_8);
lean_dec_ref(x_5);
x_9 = lean_ctor_get(x_7, 9);
lean_inc_ref(x_9);
lean_dec_ref(x_7);
x_10 = l_Array_append___redArg(x_8, x_9);
lean_dec_ref(x_9);
return x_10;
}
}
static lean_object* _init_l_Lake_Module_leanIncludeDir_x3f___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("include", 7, 7);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_leanIncludeDir_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
lean_dec_ref(x_2);
x_4 = lean_ctor_get(x_3, 4);
lean_inc_ref(x_4);
x_5 = lean_ctor_get_uint8(x_4, sizeof(void*)*26);
if (x_5 == 0)
{
lean_object* x_6; 
lean_dec_ref(x_4);
lean_dec_ref(x_3);
x_6 = lean_box(0);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_7 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_7);
lean_dec_ref(x_3);
x_8 = lean_ctor_get(x_4, 6);
lean_inc_ref(x_8);
lean_dec_ref(x_4);
x_9 = l_System_FilePath_normalize(x_8);
x_10 = l_Lake_joinRelative(x_7, x_9);
x_11 = l_Lake_Module_leanIncludeDir_x3f___closed__0;
x_12 = l_Lake_joinRelative(x_10, x_11);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_platformIndependent(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 2);
x_4 = lean_ctor_get(x_3, 0);
x_5 = lean_ctor_get(x_4, 10);
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_6 = lean_ctor_get(x_2, 0);
x_7 = lean_ctor_get(x_6, 4);
x_8 = lean_ctor_get(x_7, 1);
x_9 = lean_ctor_get(x_8, 10);
lean_inc(x_9);
return x_9;
}
else
{
lean_inc_ref(x_5);
return x_5;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_platformIndependent___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_Module_platformIndependent(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT uint8_t l_Lake_Module_shouldPrecompile(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 4);
x_5 = lean_ctor_get_uint8(x_4, sizeof(void*)*26 + 1);
if (x_5 == 0)
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_ctor_get(x_2, 2);
x_7 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1);
return x_7;
}
else
{
return x_5;
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_shouldPrecompile___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lake_Module_shouldPrecompile(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_nativeFacets(lean_object* x_1, uint8_t x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_3);
lean_dec_ref(x_1);
x_4 = lean_ctor_get(x_3, 2);
lean_inc(x_4);
lean_dec_ref(x_3);
x_5 = lean_ctor_get(x_4, 8);
lean_inc_ref(x_5);
lean_dec(x_4);
x_6 = lean_box(x_2);
x_7 = lean_apply_1(x_5, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_nativeFacets___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = lean_unbox(x_2);
x_4 = l_Lake_Module_nativeFacets(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_Module_getMTime(lean_object* x_1) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_4, 4);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
lean_dec_ref(x_1);
x_7 = lean_ctor_get(x_4, 2);
lean_inc_ref(x_7);
lean_dec_ref(x_4);
x_8 = lean_ctor_get(x_5, 6);
lean_inc_ref(x_8);
x_9 = lean_ctor_get(x_5, 7);
lean_inc_ref(x_9);
x_10 = lean_ctor_get(x_5, 10);
lean_inc_ref(x_10);
lean_dec_ref(x_5);
x_11 = l_Lake_Module_oleanFile___closed__0;
x_12 = l_System_FilePath_normalize(x_8);
x_13 = l_Lake_joinRelative(x_7, x_12);
x_14 = l_System_FilePath_normalize(x_9);
lean_inc_ref(x_13);
x_15 = l_Lake_joinRelative(x_13, x_14);
lean_inc(x_6);
x_16 = l_Lean_modToFilePath(x_15, x_6, x_11);
x_17 = lean_io_metadata(x_16);
lean_dec_ref(x_16);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_18 = lean_ctor_get(x_17, 0);
lean_inc(x_18);
lean_dec_ref(x_17);
x_19 = l_Lake_Module_ileanFile___closed__0;
lean_inc(x_6);
x_20 = l_Lean_modToFilePath(x_15, x_6, x_19);
lean_dec_ref(x_15);
x_21 = lean_io_metadata(x_20);
lean_dec_ref(x_20);
if (lean_obj_tag(x_21) == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
if (lean_is_exclusive(x_21)) {
 lean_ctor_release(x_21, 0);
 x_23 = x_21;
} else {
 lean_dec_ref(x_21);
 x_23 = lean_box(0);
}
x_24 = l_Lake_Module_cFile___closed__0;
x_25 = l_System_FilePath_normalize(x_10);
x_26 = l_Lake_joinRelative(x_13, x_25);
x_27 = l_Lean_modToFilePath(x_26, x_6, x_24);
lean_dec_ref(x_26);
x_28 = lean_io_metadata(x_27);
lean_dec_ref(x_27);
if (lean_obj_tag(x_28) == 0)
{
uint8_t x_29; 
x_29 = !lean_is_exclusive(x_28);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_38; 
x_30 = lean_ctor_get(x_28, 0);
x_31 = lean_ctor_get(x_18, 1);
lean_inc_ref(x_31);
lean_dec(x_18);
x_32 = lean_ctor_get(x_22, 1);
lean_inc_ref(x_32);
lean_dec(x_22);
x_33 = lean_ctor_get(x_30, 1);
lean_inc_ref(x_33);
lean_dec(x_30);
lean_inc_ref(x_33);
lean_ctor_set(x_28, 0, x_33);
x_38 = l_IO_FS_instOrdSystemTime_ord(x_31, x_32);
if (x_38 == 2)
{
lean_dec_ref(x_32);
x_34 = x_31;
goto block_37;
}
else
{
lean_dec_ref(x_31);
x_34 = x_32;
goto block_37;
}
block_37:
{
uint8_t x_35; 
x_35 = l_IO_FS_instOrdSystemTime_ord(x_34, x_33);
lean_dec_ref(x_33);
if (x_35 == 2)
{
lean_object* x_36; 
lean_dec_ref(x_28);
if (lean_is_scalar(x_23)) {
 x_36 = lean_alloc_ctor(0, 1, 0);
} else {
 x_36 = x_23;
}
lean_ctor_set(x_36, 0, x_34);
return x_36;
}
else
{
lean_dec_ref(x_34);
lean_dec(x_23);
return x_28;
}
}
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_48; 
x_39 = lean_ctor_get(x_28, 0);
lean_inc(x_39);
lean_dec(x_28);
x_40 = lean_ctor_get(x_18, 1);
lean_inc_ref(x_40);
lean_dec(x_18);
x_41 = lean_ctor_get(x_22, 1);
lean_inc_ref(x_41);
lean_dec(x_22);
x_42 = lean_ctor_get(x_39, 1);
lean_inc_ref(x_42);
lean_dec(x_39);
lean_inc_ref(x_42);
x_43 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_43, 0, x_42);
x_48 = l_IO_FS_instOrdSystemTime_ord(x_40, x_41);
if (x_48 == 2)
{
lean_dec_ref(x_41);
x_44 = x_40;
goto block_47;
}
else
{
lean_dec_ref(x_40);
x_44 = x_41;
goto block_47;
}
block_47:
{
uint8_t x_45; 
x_45 = l_IO_FS_instOrdSystemTime_ord(x_44, x_42);
lean_dec_ref(x_42);
if (x_45 == 2)
{
lean_object* x_46; 
lean_dec_ref(x_43);
if (lean_is_scalar(x_23)) {
 x_46 = lean_alloc_ctor(0, 1, 0);
} else {
 x_46 = x_23;
}
lean_ctor_set(x_46, 0, x_44);
return x_46;
}
else
{
lean_dec_ref(x_44);
lean_dec(x_23);
return x_43;
}
}
}
}
else
{
uint8_t x_49; 
lean_dec(x_23);
lean_dec(x_22);
lean_dec(x_18);
x_49 = !lean_is_exclusive(x_28);
if (x_49 == 0)
{
return x_28;
}
else
{
lean_object* x_50; lean_object* x_51; 
x_50 = lean_ctor_get(x_28, 0);
lean_inc(x_50);
lean_dec(x_28);
x_51 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_51, 0, x_50);
return x_51;
}
}
}
else
{
uint8_t x_52; 
lean_dec(x_18);
lean_dec_ref(x_13);
lean_dec_ref(x_10);
lean_dec(x_6);
x_52 = !lean_is_exclusive(x_21);
if (x_52 == 0)
{
return x_21;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = lean_ctor_get(x_21, 0);
lean_inc(x_53);
lean_dec(x_21);
x_54 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_54, 0, x_53);
return x_54;
}
}
}
else
{
uint8_t x_55; 
lean_dec_ref(x_15);
lean_dec_ref(x_13);
lean_dec_ref(x_10);
lean_dec(x_6);
x_55 = !lean_is_exclusive(x_17);
if (x_55 == 0)
{
return x_17;
}
else
{
lean_object* x_56; lean_object* x_57; 
x_56 = lean_ctor_get(x_17, 0);
lean_inc(x_56);
lean_dec(x_17);
x_57 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_57, 0, x_56);
return x_57;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_getMTime___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_Module_getMTime(x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_Module_instGetMTime___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_Module_getMTime___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_Module_instGetMTime() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_Module_instGetMTime___closed__0;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lake_Module_checkExists(lean_object* x_1) {
_start:
{
uint8_t x_3; lean_object* x_4; uint8_t x_29; 
x_29 = l_Lake_Module_bcFile_x3f___closed__0;
if (x_29 == 0)
{
uint8_t x_30; 
x_30 = 1;
x_3 = x_30;
x_4 = lean_box(0);
goto block_28;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; 
x_31 = lean_ctor_get(x_1, 0);
x_32 = lean_ctor_get(x_31, 0);
x_33 = lean_ctor_get(x_32, 4);
x_34 = lean_ctor_get(x_1, 1);
x_35 = lean_ctor_get(x_32, 2);
x_36 = lean_ctor_get(x_33, 6);
x_37 = lean_ctor_get(x_33, 10);
x_38 = l_Lake_Module_bcFile___closed__0;
lean_inc_ref(x_36);
x_39 = l_System_FilePath_normalize(x_36);
lean_inc_ref(x_35);
x_40 = l_Lake_joinRelative(x_35, x_39);
lean_inc_ref(x_37);
x_41 = l_System_FilePath_normalize(x_37);
x_42 = l_Lake_joinRelative(x_40, x_41);
lean_inc(x_34);
x_43 = l_Lean_modToFilePath(x_42, x_34, x_38);
lean_dec_ref(x_42);
x_44 = l_System_FilePath_pathExists(x_43);
lean_dec_ref(x_43);
x_3 = x_44;
x_4 = lean_box(0);
goto block_28;
}
block_28:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; 
x_5 = lean_ctor_get(x_1, 0);
x_6 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_6);
x_7 = lean_ctor_get(x_6, 4);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_1, 1);
lean_inc(x_8);
lean_dec_ref(x_1);
x_9 = lean_ctor_get(x_6, 2);
lean_inc_ref(x_9);
lean_dec_ref(x_6);
x_10 = lean_ctor_get(x_7, 6);
lean_inc_ref(x_10);
x_11 = lean_ctor_get(x_7, 7);
lean_inc_ref(x_11);
x_12 = lean_ctor_get(x_7, 10);
lean_inc_ref(x_12);
lean_dec_ref(x_7);
x_13 = l_Lake_Module_oleanFile___closed__0;
x_14 = l_System_FilePath_normalize(x_10);
x_15 = l_Lake_joinRelative(x_9, x_14);
x_16 = l_System_FilePath_normalize(x_11);
lean_inc_ref(x_15);
x_17 = l_Lake_joinRelative(x_15, x_16);
lean_inc(x_8);
x_18 = l_Lean_modToFilePath(x_17, x_8, x_13);
x_19 = l_System_FilePath_pathExists(x_18);
lean_dec_ref(x_18);
x_20 = l_Lake_Module_ileanFile___closed__0;
lean_inc(x_8);
x_21 = l_Lean_modToFilePath(x_17, x_8, x_20);
lean_dec_ref(x_17);
x_22 = l_System_FilePath_pathExists(x_21);
lean_dec_ref(x_21);
x_23 = l_Lake_Module_cFile___closed__0;
x_24 = l_System_FilePath_normalize(x_12);
x_25 = l_Lake_joinRelative(x_15, x_24);
x_26 = l_Lean_modToFilePath(x_25, x_8, x_23);
lean_dec_ref(x_25);
x_27 = l_System_FilePath_pathExists(x_26);
lean_dec_ref(x_26);
if (x_19 == 0)
{
return x_19;
}
else
{
if (x_22 == 0)
{
return x_22;
}
else
{
if (x_27 == 0)
{
return x_27;
}
else
{
return x_3;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_Module_checkExists___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_Module_checkExists(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
static lean_object* _init_l_Lake_Module_instCheckExists___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_Module_checkExists___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_Module_instCheckExists() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_Module_instCheckExists___closed__0;
return x_1;
}
}
lean_object* initialize_Lake_Config_LeanLib(uint8_t builtin);
lean_object* initialize_Lake_Util_OrdHashSet(uint8_t builtin);
lean_object* initialize_Lake_Util_NativeLib(uint8_t builtin);
lean_object* initialize_Lake_Util_FilePath(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lake_Config_Module(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lake_Config_LeanLib(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Util_OrdHashSet(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Util_NativeLib(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Util_FilePath(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lake_instToJsonModule = _init_l_Lake_instToJsonModule();
lean_mark_persistent(l_Lake_instToJsonModule);
l_Lake_instToStringModule = _init_l_Lake_instToStringModule();
lean_mark_persistent(l_Lake_instToStringModule);
l_Lake_instHashableModule = _init_l_Lake_instHashableModule();
lean_mark_persistent(l_Lake_instHashableModule);
l_Lake_instBEqModule = _init_l_Lake_instBEqModule();
lean_mark_persistent(l_Lake_instBEqModule);
l_Lake_ModuleSet_empty___closed__0 = _init_l_Lake_ModuleSet_empty___closed__0();
lean_mark_persistent(l_Lake_ModuleSet_empty___closed__0);
l_Lake_ModuleSet_empty___closed__1 = _init_l_Lake_ModuleSet_empty___closed__1();
lean_mark_persistent(l_Lake_ModuleSet_empty___closed__1);
l_Lake_ModuleSet_empty = _init_l_Lake_ModuleSet_empty();
lean_mark_persistent(l_Lake_ModuleSet_empty);
l_Lake_OrdModuleSet_empty___closed__0 = _init_l_Lake_OrdModuleSet_empty___closed__0();
lean_mark_persistent(l_Lake_OrdModuleSet_empty___closed__0);
l_Lake_OrdModuleSet_empty___closed__1 = _init_l_Lake_OrdModuleSet_empty___closed__1();
lean_mark_persistent(l_Lake_OrdModuleSet_empty___closed__1);
l_Lake_OrdModuleSet_empty___closed__2 = _init_l_Lake_OrdModuleSet_empty___closed__2();
lean_mark_persistent(l_Lake_OrdModuleSet_empty___closed__2);
l_Lake_OrdModuleSet_empty = _init_l_Lake_OrdModuleSet_empty();
lean_mark_persistent(l_Lake_OrdModuleSet_empty);
l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg___closed__0 = _init_l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg___closed__0();
lean_mark_persistent(l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg___closed__0);
l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg___closed__1 = _init_l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg___closed__1();
lean_mark_persistent(l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__2___redArg___closed__1);
l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__1 = _init_l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__1();
l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__0 = _init_l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__0();
lean_mark_persistent(l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__0);
l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__2 = _init_l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__2();
lean_mark_persistent(l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__2);
l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__3 = _init_l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__3();
lean_mark_persistent(l_String_dropSuffix_x3f___at___00Lake_LeanLib_findModuleBySrc_x3f_spec__3___redArg___closed__3);
l_Lake_Package_findModule_x3f___closed__0 = _init_l_Lake_Package_findModule_x3f___closed__0();
lean_mark_persistent(l_Lake_Package_findModule_x3f___closed__0);
l_Lake_Package_findModule_x3f___closed__1 = _init_l_Lake_Package_findModule_x3f___closed__1();
lean_mark_persistent(l_Lake_Package_findModule_x3f___closed__1);
l_Lake_Package_findModule_x3f___closed__2 = _init_l_Lake_Package_findModule_x3f___closed__2();
lean_mark_persistent(l_Lake_Package_findModule_x3f___closed__2);
l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___closed__0 = _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___closed__0();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___closed__0);
l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___closed__1 = _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___closed__1();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_forEachModuleInDir___at___00Lake_LeanLib_getModuleArray_spec__0_spec__1___closed__1);
l_Lake_LeanLib_getModuleArray___closed__0 = _init_l_Lake_LeanLib_getModuleArray___closed__0();
lean_mark_persistent(l_Lake_LeanLib_getModuleArray___closed__0);
l_Lake_Module_oleanFile___closed__0 = _init_l_Lake_Module_oleanFile___closed__0();
lean_mark_persistent(l_Lake_Module_oleanFile___closed__0);
l_Lake_Module_oleanServerFile___closed__0 = _init_l_Lake_Module_oleanServerFile___closed__0();
lean_mark_persistent(l_Lake_Module_oleanServerFile___closed__0);
l_Lake_Module_oleanPrivateFile___closed__0 = _init_l_Lake_Module_oleanPrivateFile___closed__0();
lean_mark_persistent(l_Lake_Module_oleanPrivateFile___closed__0);
l_Lake_Module_ileanFile___closed__0 = _init_l_Lake_Module_ileanFile___closed__0();
lean_mark_persistent(l_Lake_Module_ileanFile___closed__0);
l_Lake_Module_traceFile___closed__0 = _init_l_Lake_Module_traceFile___closed__0();
lean_mark_persistent(l_Lake_Module_traceFile___closed__0);
l_Lake_Module_setupFile___closed__0 = _init_l_Lake_Module_setupFile___closed__0();
lean_mark_persistent(l_Lake_Module_setupFile___closed__0);
l_Lake_Module_irFile___closed__0 = _init_l_Lake_Module_irFile___closed__0();
lean_mark_persistent(l_Lake_Module_irFile___closed__0);
l_Lake_Module_cFile___closed__0 = _init_l_Lake_Module_cFile___closed__0();
lean_mark_persistent(l_Lake_Module_cFile___closed__0);
l_Lake_Module_coExportFile___closed__0 = _init_l_Lake_Module_coExportFile___closed__0();
lean_mark_persistent(l_Lake_Module_coExportFile___closed__0);
l_Lake_Module_coNoExportFile___closed__0 = _init_l_Lake_Module_coNoExportFile___closed__0();
lean_mark_persistent(l_Lake_Module_coNoExportFile___closed__0);
l_Lake_Module_bcFile___closed__0 = _init_l_Lake_Module_bcFile___closed__0();
lean_mark_persistent(l_Lake_Module_bcFile___closed__0);
l_Lake_Module_bcFile_x3f___closed__0 = _init_l_Lake_Module_bcFile_x3f___closed__0();
l_Lake_Module_bcoFile___closed__0 = _init_l_Lake_Module_bcoFile___closed__0();
lean_mark_persistent(l_Lake_Module_bcoFile___closed__0);
l_Lake_Module_dynlibSuffix___closed__0 = _init_l_Lake_Module_dynlibSuffix___closed__0();
lean_mark_persistent(l_Lake_Module_dynlibSuffix___closed__0);
l_Lake_Module_dynlibSuffix = _init_l_Lake_Module_dynlibSuffix();
lean_mark_persistent(l_Lake_Module_dynlibSuffix);
l_Lake_Module_dynlibFile___closed__0 = _init_l_Lake_Module_dynlibFile___closed__0();
lean_mark_persistent(l_Lake_Module_dynlibFile___closed__0);
l_Lake_Module_dynlibFile___closed__1 = _init_l_Lake_Module_dynlibFile___closed__1();
lean_mark_persistent(l_Lake_Module_dynlibFile___closed__1);
l_Lake_Module_leanIncludeDir_x3f___closed__0 = _init_l_Lake_Module_leanIncludeDir_x3f___closed__0();
lean_mark_persistent(l_Lake_Module_leanIncludeDir_x3f___closed__0);
l_Lake_Module_instGetMTime___closed__0 = _init_l_Lake_Module_instGetMTime___closed__0();
lean_mark_persistent(l_Lake_Module_instGetMTime___closed__0);
l_Lake_Module_instGetMTime = _init_l_Lake_Module_instGetMTime();
lean_mark_persistent(l_Lake_Module_instGetMTime);
l_Lake_Module_instCheckExists___closed__0 = _init_l_Lake_Module_instCheckExists___closed__0();
lean_mark_persistent(l_Lake_Module_instCheckExists___closed__0);
l_Lake_Module_instCheckExists = _init_l_Lake_Module_instCheckExists();
lean_mark_persistent(l_Lake_Module_instCheckExists);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
